// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * InventoryReport
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "inventory_report", autoResultMap = true)
@Schema(title = "库存报表")
public class InventoryReport implements Serializable {

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 仓库
   */
  @TableField(value = "`stock_id`")
  @JoinField(Warehouse.class)
  @Schema(title = "仓库")
  private Long stockId;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 产品
   */
  @TableField(value = "`item_id`")
  @JoinField(Product.class)
  @Schema(title = "产品")
  private Long itemId;

  /**
   * 批次号
   */
  @TableField(value = "`batch_no`")
  @Schema(title = "批次号")
  private String batchNo;

  /**
   * 库存数量
   */
  @TableField(value = "`stock_qty`")
  @Schema(title = "库存数量")
  private java.math.BigDecimal stockQty;

  /**
   * 库存金额
   */
  @TableField(value = "`stock_amount`")
  @Schema(title = "库存金额")
  private java.math.BigDecimal stockAmount;

  /**
   * 锁库数量
   */
  @TableField(value = "`lock_qty`")
  @Schema(title = "锁库数量")
  private java.math.BigDecimal lockQty;

  /**
   * 陈列数量
   */
  @TableField(value = "`display_qty`")
  @Schema(title = "陈列数量")
  private java.math.BigDecimal displayQty;

  /**
   * 残次数量
   */
  @TableField(value = "`defect_qty`")
  @Schema(title = "残次数量")
  private java.math.BigDecimal defectQty;

  /**
   * 在途数量
   */
  @TableField(value = "`way_qty`")
  @Schema(title = "在途数量")
  private java.math.BigDecimal wayQty;
}
